package com.chen.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chen
 * @since 2022-12-13
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("biz_out_stock")
@ApiModel(value = "OutStock对象", description = "")
public class OutStock extends Model<OutStock> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("出库单")
    @TableField("out_num")
    private String outNum;

    @ApiModelProperty("出库类型:0:直接出库,1:审核出库")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("操作人")
    @TableField("operator")
    private String operator;

    @ApiModelProperty("出库时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("出库总数")
    @TableField("product_number")
    private Integer productNumber;

    @ApiModelProperty("消费者id")
    @TableField("consumer_id")
    private Long consumerId;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("状态:0:正常入库,1:已进入回收,2:等待审核")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("紧急程度:1:不急,2:常规,3:紧急4:特急")
    @TableField("priority")
    private Integer priority;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
